home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: bjones1@usa.pipeline.com(Bill Jones)
- Newsgroups: comp.sys.amiga.programmer
- Subject: GadTools Callback question...
- Date: 5 Mar 1996 07:59:12 GMT
- Organization: Pipeline USA
- Message-ID: <4hgs8g$7ui@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
- X-PipeUser: bjones1
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Bill Jones)
- X-Newsreader: Pipeline USA v3.4.0
-
- I am rather new at doing callback hooks for GadTools but I wanted to give
- it a try for the new Phasar program. I am using the STRING_KIND gadget
- which has a StringExtend structure and a pointer to my subroutine in the
- EditHook field. One hook is being used for date entry in the format of
- mm/dd/yy where the slashes (/) are automatically processed by the callback
- hook. Another formats money fields the same way a cash register would.
- Both hooks work as expected when data is being entered. Both need to
- inspect data contained within the STRING gadget BEFORE any data is entered.
- Therefore I need to know as soon as someone clicks on the gadget or enters
- the gadget via the tab-cycle.
-
- Clicking on the gadget gives an interrupt to my callback hook as expected
- and I can correct the data in the gadget before any typing is performed.
- However, when the gadget is activated via the tab key the SGH_CLICK command
- is not sent to my hook. What I need to know is how to get control of the
- gadget as soon as it is entered (activated) via the tab key or an
- SGA_NEXTACTIVE command.
-
- Thanks for any help in this area.
- --
- Phasar Amiga Software
- Bill Jones
- bjones1@usa.pipeline.com
-